package com.edt.ichannel.admin.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("test")
public class TestController  {


    @RequestMapping("/testsave/{id}")
    @ResponseBody
    public Map<String,String> test(@PathVariable String id ){
        Map<String,String> map = new HashMap<>();
        map.put("id",id);
        return map;
    }


    @RequestMapping("/testsave1/{id}")
    public String test1(@PathVariable String id ){
        System.out.println(id);
        return "/login";
    }



}
